//
//  DaishouExpress.m
//  TengyunStation
//
//  Created by Johnny on 15/10/27.
//  Copyright © 2015年 xingrong. All rights reserved.
//

#import "DaishouExpress.h"
#import "SocketMethod.h"

@implementation DaishouExpress

- (id)initWithString:(NSString *)string {
    self = [super init];
    if (self) {
        NSArray *array = [string componentsSeparatedByString:@","];
        int i = 0;
        self.expressNo = [SocketMethod subArray:array Index:i ++];
        self.expressId = [SocketMethod subArray:array Index:i ++];
        self.telephone = [SocketMethod subArray:array Index:i ++];
        self.address = [SocketMethod subArray:array Index:i ++];
        self.position = [SocketMethod subArray:array Index:i ++];
        self.inWayExpressId = [SocketMethod subArray:array Index:i ++];
    }
    return self;
}

@end
